--package.cpath = package.cpath .. ';C:/Users/Administrator/AppData/Roaming/JetBrains/Rider2020.2/plugins/intellij-emmylua/classes/debugger/emmy/windows/x64/?.dll'
--local dbg = require('emmy_core')
----dbg.tcpListen('localhost', 9966)--先Unity
--dbg.tcpConnect('localhost', 9966)--先甲虫
----dbg.waitIDE()


---true:不洗牌，CardPileConst.lua最下面配置手牌
---false:洗牌，使用真实1v1牌堆
isTestCardPile = false
---是否加载卡牌图片
isUseImage = true
require("GlobalRequire")

--主入口函数。从这里开始lua逻辑
function Main()
	print("logic start")
	resMgr:LoadPrefab('scene', table.repack(SceneNames)  , function(objs)
		for i=1,objs.Length do
			SceneObjs[objs[i-1].name] = objs[i-1]
		end
		sm.ChangeScene(SceneNames.Menu)
	end)
	--Test()
end

--场景切换通知
function OnLevelWasLoaded(level)
	collectgarbage("collect")
	Time.timeSinceLevelLoad = 0
end

function OnApplicationQuit()
end

function Test()
	local b = true
	print(not bb)
	b = nil
	print(not bb)
end
